package com.cjzuji.rental.controller.order;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cjzuji.rental.mapper.RequestMapper;
import com.cjzuji.rental.pojo.RequestHeard;
import com.cjzuji.rental.service.RiskApprovilService;
import com.cjzuji.rental.service.YpRiskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/risk")
@Api(tags = "风控")
@Component
public class RiskController {
    @Autowired
    RiskApprovilService riskApprovilService;
    private static final Logger logger = LoggerFactory.getLogger(RiskController.class);

    //http://127.0.0.1:9099/risk/getApprovilInfo
    //获取风控审批信息
    @PostMapping("/getApprovilInfo")
    @ApiOperation(value = "风控审批", notes = "风控审批")
    public String riskApproval() {
        return riskApprovilService.riskApproval(null, null);
    }
    //查询风控结果接口
    @PostMapping("/getQueryApproval")
    @ApiOperation(value = "查询风控结果", notes = "查询风控结果")
    public String queryApproval() {
        return riskApprovilService.queryApproval( null);
    }
}